home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / cp2dekit / h / binfstd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-29  |  860 b   |  35 lines

  1. //***************************************************************************
  2. //
  3. // this file is (c) '94-'96 Niklas Beisert
  4. //
  5. // this file is part of the cubic player development kit.
  6. // you may only use/modify/spread this file under the terms stated
  7. // in the cubic player development kit accompanying documentation.
  8. //
  9. //***************************************************************************
  10.  
  11. #ifndef __SBINFILE_H
  12. #define __SBINFILE_H
  13.  
  14. #include "binfile.h"
  15.  
  16. class sbinfile : public binfile
  17. {
  18. protected:
  19.   int handle;
  20.  
  21. public:
  22.   sbinfile();
  23.  
  24.   enum { openro=0, openrw, opencr, opencrn };
  25.   int open(const char *name, int type);
  26.  
  27.   virtual void close();
  28.   virtual long read(void *buf, long len);
  29.   virtual long write(const void *buf, long len);
  30.   virtual long seek(long pos);
  31.   virtual long chsize(long pos);
  32. };
  33.  
  34. #endif
  35.